<template>
  <div class="">
   ipad
  </div>
</template>

<script>

export default {
  components: {
   
  },
  data() {
    return {
      formItem: {
        user: "",
        password: "",
        checkbox: []
      },
      ruleInline: {
        user: [
          {
            required: true,
            message: "用户名不能为空",
            trigger: "blur"
          }
        ],
        password: [
          {
            required: true,
            message: "密码不能为空",
            trigger: "blur"
          },
          {
            type: "string",
            min: 6,
            message: "密码长度不能小于6位",
            trigger: "blur"
          }
        ]
      }
    };
  },
  methods: {
    handleSubmit(name) {
      this.$refs[name].validate(valid => {
        if (valid) {
          this.$Message.success("登陆成功!");
          setTimeout(()=>{
            this.$router.push({
              name:'index'
            },2000)
          })
        } else {
          this.$Message.error("输入有误");
        }
      });
    },
    toForget(){
      this.$router.push({
        name:"forget"
      })
    }
  }
};
</script>

<style lang="less">

</style>